using System;
using System.Collections.Generic;
using System.Text;

namespace PatternMaker
{
	/// <summary>
	/// Event arguments used for notification async of exceptions.
	/// </summary>
	public class ExceptionEventArgs : EventArgs
	{
		private Exception _exception;

		/// <summary>
		/// Initializes an instance of the ExceptionEventArgs class.
		/// </summary>
		/// <param name="exception"></param>
		public ExceptionEventArgs(Exception exception)
		{
			Exception = exception;
		}

		/// <summary>
		/// The exception being reported.
		/// </summary>
		public Exception Exception
		{
			get { return _exception; }
			set { _exception = value; }
		}
	}
}
